package cn.com.api.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import cn.com.api.entity.ApiU_discover_cate;
import cn.com.api.mapper.base.U_discover_cateMapperBase;

//DAO
public interface ApiU_discover_cateMapper extends U_discover_cateMapperBase {

	// 新增对象后返回记录ID
	public int U_discover_cateInsertion(ApiU_discover_cate u_discover_cate);

	public List<ApiU_discover_cate> findU_discover_catesByMap(Map map);
	
	//查看数据集
    @Select("SELECT * FROM U_discover_cate order by sort")
	public List<ApiU_discover_cate> findAllU_discover();

	public List<Map<String, Object>> findDiscoverFavoriteList(@Param("user_id") String user_id);

}
